using System;
using System.Collections.Generic;
using System.Text;


namespace Bots.Index
{
    public class Fetcher : ITask
    {
        protected log4net.ILog logger = log4net.LogManager.GetLogger(typeof(Fetcher));
        #region ITask Members

        public virtual void Execute()
        {
            logger.Info("DomainObject Fetcher has execute " + DateTime.Now.ToLongTimeString());
            List<DomainObject> domainObjects = IncIndexManager.FetchIncIndicex(100);

            foreach (DomainObject obj in domainObjects)
            {
                ShareBufferPool.Produce(obj);
            }
        }

        #endregion
    }
}
